﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Data.Car_Rental;
using Entity.Car_Rental;
namespace Car_Rental.Controllers
{
    public class HelpCenterController : Controller
    {
        IHelperCenterRepository iHelperCenterRepository = null;
        public HelpCenterController()
        {
            iHelperCenterRepository = new HelperCenterRepository();
        }
        //
        // GET: /Help/

        public ActionResult Index(int cateID)
        {
            var model = iHelperCenterRepository.GetModel().FirstOrDefault(i => i.HelpCategoryID == cateID);
             return View(model);
        }

    }
}
